﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pahan.McuFusion.FusionBoot
{
    internal class FusionBootInfo
    {
        private FusionBootInfo(byte[] data)
        {
            protocolVersion = new Version(data[1], data[0]);
            firmwareVersion = new Version(data[3], data[1]);
        }

        public static FusionBootInfo Create(byte[] data)
        {
            return new FusionBootInfo(data);
        }

        public Version ProtocolVersion
        { 
            get
            {
                return protocolVersion;
            }
        }

        public Version FirmwareVersion
        {
            get
            {
                return firmwareVersion;
            }
        }

        private readonly Version protocolVersion;

        private readonly Version firmwareVersion;
    }
}
